package com.demo.springboot;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class Animal {

    @PostConstruct
    public void initial() {
        System.out.println("---------Animal initial---------");
    }

    @PreDestroy
    public void close() {
        System.out.println("---------Animal destroy---------");
    }
}
